﻿__widget = function (_data) {
    this._userPreferences = _data;
}
__widget.prototype = {
    getUserPreferences: function (key) {
        if (key)
           return this._userPreferences[key];
        else
           return this._userPreferences;
    },
    saveUserPreferences: function () {
    },
    getIdPrefix: function () {
      this.id.substring(1,5);
    },
    generateFieldID: function (_fieldName) {
        return fieldName + getIdPrefix();
    }
}
